#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<algorithm>
#include<string>

using namespace std;
//https://www.luogu.com.cn/problem/P3370
typedef unsigned long long ULL;
const int N = 1e4 + 10;

const int P = 131;
ULL a[N];
int n;
string s[N];

ULL get_hash(string & s)
{
	int ret = 0;
	for (int i = 0; i < s.size(); ++i)
	{
		ret += ret * P + s[i];
	}
	return ret;
}

int main()
{
	cin >> n;
	for(int i=1 ;i <= n ; ++i)
	{
		cin >> s[i];
		a[i] = get_hash(s[i]);
	}

	sort(a + 1, a + 1 + n);
	int ret = 0;
	for (int i = 1; i <= n; ++i)
	{
		if (a[i] != a[i - 1])ret++;
	}
	cout << ret << endl;



	return 0;
}